package com.lagou.SqlSessionFactory;

import com.lagou.pojo.Configuration;

/**
 * <pre>
 * 描述：TODO
 * </pre>
 *
 * @类名：com.lagou.SqlSessionFactory.DefaultSqlSessionFactory
 * @作者 mengwei
 * 创建日期：2020/9/28 10:24
 */
public class DefaultSqlSessionFactory  implements  SqlSessionFactory{
    private Configuration configuration;

    public DefaultSqlSessionFactory(Configuration configuration) {
        this.configuration = configuration;
    }

    @Override
    public SqlSession openSession() {
        return new DefaultSqlSession(configuration);
    }
}
